#ifndef GUIDETABLE_H
#define GUIDETABLE_H

#include <QWidget>
#include <QTableWidget>
#include <QFile>
#include <QCoreApplication>
#include <QDomElement>
#include <QDomNode>
#include <QMessageBox>
#include <QHBoxLayout>
#include <QHeaderView>
#include <QLabel>
#include <QException>

#include <QTimer>
#include "pcrState.h"




class GuideTable : public QWidget
{
    Q_OBJECT
public:
    GuideTable(QWidget* parent = nullptr);
    void init(PCRState* state);

public slots:
    void on_pageChanged();
    void on_filterChanged();


private:

    void showEvent(QShowEvent *event) override;

    void tab1();
    void tab2();
    void datain();
    void datacu(int row,double famn,double vicn,double roxn,double cqv,double cqbz);    // 浓度、Cy5的cq（同一个样本的平均浓度）、标准品Cy5 cq均值
    void dataca(int row, double ICS, double DI, double AL, double AS, double Y);        // 浓度
    void xsui(int row,QString type,int tx);

    void updateCount();

public:
    QTableWidget*   _table_data;
    QTableWidget*   _table_plan;
    PCRState*       pState;
    QVBoxLayout*    _layout;
    QWidget*        _widget_text;
    QHBoxLayout*    _layout_text;

    QLabel*         _label_Y;
    QLabel*         _label_AL;
    QLabel*         _label_AS;

    bool miniSTRfl = true, YSTRfl = true;

    QTableWidget*   _table0;

    QStringList     STRType;
    QStringList     STRName;
    QStringList     STRsys;


};

#endif // GUIDETABLE_H
